/*****************************************************************************
* Keppe Messenger (KMP) Keppe Project-Team User Messaging System
* Copyright (C) 2013-2014 Keppe Project-Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/

#ifndef FRMCONFIG_H
#define FRMCONFIG_H

#include <QAbstractButton>
#include <QDialog>
#include <QMap>
#include "frmLogin.h"
#include "config.h"

namespace Ui {
class frmConfig;
}

class frmConfig : public QDialog
{
    Q_OBJECT

public:
    explicit frmConfig(QWidget *parent = 0, QString languagePath = "");
    QStringList putStringToStringList(QString string);
    void setForm(frmLogin* login);
    ~frmConfig();

private slots:
    void on_cmdChangeFont_clicked();
    void on_cmdFontReset_clicked();
    void on_bbOptions_clicked(QAbstractButton *button);

private:
    Ui::frmConfig *ui;
    void on_cmdCancel_clicked();
    void on_cmdOK_clicked();
    QMap <QString,QString> langWrapper;
    QString getLatestVersion();
    QString languagePath;
    QString uInformation;
    QFont currentFont;
    bool resetFont;
    QObject *form;
};

#endif // FRMCONFIG_H
